export const rules = {
    notifyName: [
        { required: true, message: '请输入通知名称', trigger: 'blur' },
        { min: 2, max: 20, message: '通知名称长度2-20位', trigger: 'blur' }
    ],
    notifyCode: [
        { required: true, message: '请输入通知编码', trigger: 'blur' },
        { min: 2, max: 20, message: '通知编码长度2-20位', trigger: 'blur' },
    ],
    alarmType: [
        { required: true, message: '请选择报警类型', trigger: 'change' }
    ],
    templateCode: [
        { required: true, message: '请选择通知模板', trigger: 'change' }
    ],
    deviceCode: [
        { required: true, message: '请选择关联设备', trigger: 'change' }
    ],
    threshold: [
        { required: true, message: '请输入报警限值', trigger: 'blur' }
    ],
    relationField: [
        { required: true, message: '请选择关联字段', trigger: 'change' }
    ],
    resetValue: [
        { required: true, message: '请输入回参数值', trigger: 'blur' }
    ],
    // relaUser: [
    //     { required: true, message: '请选择通知人员', trigger: 'change' }
    // ],
};
